package com.bdth.mixapi.api.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 设备历史演变表
 * </p>
 *
 * @author LGP
 * @since 2019-04-28
 */
@TableName("sys_device_change")
public class DeviceChange implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备编号
     */
    private String device;

    /**
     * 设备类型
     */
    private String type;

    /**
     * 位置
     */
    private BigDecimal lng;

    /**
     * 位置
     */
    private BigDecimal lat;

    /**
     * 创建日期（格式：2017-10）
     */
    private String crtime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }
    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }
    public String getCrtime() {
        return crtime;
    }

    public void setCrtime(String crtime) {
        this.crtime = crtime;
    }

    @Override
    public String toString() {
        return "DeviceChange{" +
        "id=" + id +
        ", device=" + device +
        ", type=" + type +
        ", lng=" + lng +
        ", lat=" + lat +
        ", crtime=" + crtime +
        "}";
    }

    public DeviceChange(String crtime, String device, String type, BigDecimal lng, BigDecimal lat) {
        this.crtime = crtime;
        this.device = device;
        this.type = type;
        this.lng = lng;
        this.lat = lat;
    }

    public DeviceChange() {
    }
}
